﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Commander.Common.DataContracts {
	[DataContract]
	public class OperationResponse {
		[DataMember]
		public bool HasSuceeded { get; set; }
		[DataMember]
		public ResutlCode Code { get; set; }
		[DataMember]
		public Exception Error { get; set; }
	}

	public enum ResutlCode {
		Undefined = 0, ItemDontExist = 1, ItemAlreadyExists = 2, InvalidContract = 3
	}
}
